<div class="sidebar" id="sidebar">
	<script type="text/javascript">
		try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
	</script>

	<div class="sidebar-shortcuts" id="sidebar-shortcuts">
		<div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
			<button class="btn btn-success">
				<i class="icon-signal"></i>
			</button>

			<button class="btn btn-info">
				<i class="icon-pencil"></i>
			</button>

			<button class="btn btn-warning">
				<i class="icon-group"></i>
			</button>

			<button class="btn btn-danger">
				<i class="icon-cogs"></i>
			</button>
		</div>

		<div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
			<span class="btn btn-success"></span>

			<span class="btn btn-info"></span>

			<span class="btn btn-warning"></span>

			<span class="btn btn-danger"></span>
		</div>
	</div><!-- #sidebar-shortcuts -->

	<ul class="nav nav-list">
		<li class="active">
			<a href="index.html">
				<i class="icon-dashboard"></i>
				<span class="menu-text"> 后台首页 </span>
			</a>
		</li>
		<li>
			<a href="#" class="dropdown-toggle">
				<i class="icon-list"></i>
				<span class="menu-text"> 权限控制 </span>

				<b class="arrow icon-angle-down"></b>
			</a>

			<ul class="submenu">
				<li>
					<a href="{:U('Admin/index')}">
						<i class="icon-double-angle-right"></i>
						管理员列表
					</a>
				</li>
				<li>
					<a href="{:U('Admin/add')}">
						<i class="icon-double-angle-right"></i>
						添加管理员
					</a>
				</li>
				<li>
					<a href="{:U('Rule/index')}">
						<i class="icon-double-angle-right"></i>
						权限管理
					</a>
				</li>

				<li>
					<a href="{:U('RuleGroup/index')}">
						<i class="icon-double-angle-right"></i>
						用户组管理
					</a>
				</li>
			</ul>
		</li>
		<li>
			<a href="#" class="dropdown-toggle">
				<i class="icon-list"></i>
				<span class="menu-text"> 系统设置 </span>

				<b class="arrow icon-angle-down"></b>
			</a>

			<ul class="submenu">
				<li>
					<a href="{:U('Nav/index')}">
						<i class="icon-double-angle-right"></i>
						菜单栏管理
					</a>
				</li>
				<li>
					<a href="{:U('Nav/index')}">
						<i class="icon-double-angle-right"></i>
						添加新菜单
					</a>
				</li>
				<li>
					<a href="{:U('Nav/index')}">
						<i class="icon-double-angle-right"></i>
						导航栏管理
					</a>
				</li>
				<li>
					<a href="{:U('Nav/index')}">
						<i class="icon-double-angle-right"></i>
						添加新的导航栏
					</a>
				</li>
				<li>
					<a href="{:U('Base/index')}">
						<i class="icon-double-angle-right"></i>
						基本设置
					</a>
				</li>
				<li>
					<a href="{:U('Cache/index')}">
						<i class="icon-double-angle-right"></i>
						缓存管理
					</a>
				</li>
			</ul>
		</li>
		<li>
			<a href="#" class="dropdown-toggle">
				<i class="icon-list"></i>
				<span class="menu-text"> 学生管理 </span>

				<b class="arrow icon-angle-down"></b>
			</a>

			<ul class="submenu">
				<li>
					<a href="{:U('User/index')}">
						<i class="icon-double-angle-right"></i>
						学生列表
					</a>
				</li>
				<li>
					<a href="{:U('User/Add')}">
						<i class="icon-double-angle-right"></i>
						添加新的学生
					</a>
				</li>
			</ul>
		</li>
		<li>
			<a href="#" class="dropdown-toggle">
				<i class="icon-list"></i>
				<span class="menu-text"> 问答管理 </span>

				<b class="arrow icon-angle-down"></b>
			</a>

			<ul class="submenu">
				<li>
					<a href="{:U('AskCategory/index')}">
						<i class="icon-double-angle-right"></i>
						问题类别管理
					</a>
				</li>
				<li>
					<a href="{:U('AskCategory/Add')}">
						<i class="icon-double-angle-right"></i>
						添加类别
					</a>
				</li>
				<li>
					<a href="{:U('Ask/index')}">
						<i class="icon-double-angle-right"></i>
						问题列表
					</a>
				</li>
				<li>
					<a href="{:U('Ask/Add')}">
						<i class="icon-double-angle-right"></i>
						添加新问题
					</a>
				</li>
			</ul>
		</li>
		<!-- 后台菜单 -->
		<foreach name="admin_navs" item="v">
			<empty name="v['_data']">
                <li class="b-nav-li">
                	<a href="{:U($v['mca'])}" target="right_content">
                		<i class="icon-{$v['ico']}"></i> <span class="menu-text">{$v['name']}</span>
                	</a>
                </li>
            <else/>
            	<li class="b-has-child">
            		<a href="#" class="dropdown-toggle b-nav-parent">
            			<i class="icon-{$v['ico']} icon-test"></i> <span class="menu-text">{$v['name']}</span><b class="arrow icon-angle-down"></b>
            		</a>
                    <ul class="submenu">
                        <foreach name="v['_data']" item="n">
                            <li class="b-nav-li">
                            	<a href="{:U($n['mca'])}" target="right_content">
                            		<i class="icon-double-angle-right"></i> {$n['name']}
                            	</a>
                            </li>
                        </foreach>
                    </ul>
                </li>
            </empty>
		</foreach>

	</ul><!-- /.nav-list -->

	<div class="sidebar-collapse" id="sidebar-collapse">
		<i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
	</div>

	<script type="text/javascript">
		try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
	</script>
</div>